<div class="boxB boxNoBg">
	<div class="boxBmiddle">		
		<div class="test-ques">
			<?php if(count($conclusions) > 0) : ?>
			<dl>
				<dt><?php echo CHtml::image(Yii::app()->baseUrl.'/images/stats.png') ?> 你的测试结果是：<span id="copyConcBtn">复制结果到剪贴板</span></dt>
				<?php foreach($conclusions as $conclusion) : ?>
				<dd style="display: none"><h4><?php echo htmlspecialchars($conclusion->conclusionSum) ?></h4></dd>
				<dd style="display: none"><?php echo strip_tags($conclusion->conclusionDescr, '<img><br><strong><em><a><ul><li>') ?></dd>
				<?php endforeach ?>
			</dl>
			<?php endif ?>
		</div>
	</div>
	<div class="boxBbottom">
		<div class="boxBb1"><div class="boxBb2"><div class="boxBb3"></div></div></div>
	</div>
</div>
<script type="text/javascript" src="<?php echo Yii::app()->baseUrl.'/assets/zeroclipboard/ZeroClipboard.js' ?>"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('div.test-ques dd').fadeIn();
    ZeroClipboard.setMoviePath( "<?php echo Yii::app()->baseUrl.'/assets/zeroclipboard/ZeroClipboard10.swf' ?>" );
    var clip = new ZeroClipboard.Client();
    clip.setHandCursor(true);
    html = "";
    $('div.test-ques dl dd').each(function() {
        html += $(this).html();    
    });
    clip.setText(html);
    
    clip.addEventListener('complete', function(client, text) {
        alert("测试结果复制成功，您可以将其粘贴到 Word。");
    });

    clip.glue("copyConcBtn");
    $(window).resize(function() {
        clip.reposition();    
    });
});
</script>
